package com.hilihili.constant;

/**
 * redis常量类
 * @author machi
 * @date 2023/12/03
 */
public class RedisVideoConstant {
    private RedisVideoConstant(){};
    /**
     *在线观看人数
     */
    public static final String VIEWS_NUMBER = "hilihili:video:viewsNumber:";
    /**
     *是否可增加视频播放量
     */
    public static final String VIEWS_NUMBER_NOT_ADDABLE = "hilihili:video:non-addable:";
    /**
     *连接存活 前缀
     */
    public static final String VIEWS_NUMBER_LIVE = "hilihili:video:viewsNumberLive:";
    /**
     *视频播放量
     */
    public static final String VIEW_COUNTS = "hilihili:video:viewsCounts:";
    /**
     *可再次打开同一视频增加播放量 冷却时间
     * 默认30分钟
     */
    public static final Long VIEWS_NUMBER_ADDABLE_TIME = 1000 * 60 * 30L;
    /**
     * 视频封面信息
     */
    public static final String VIDEO_INDEX_INFO = "hilihili:video:index_info:";
}
